home *** CD-ROM | disk | FTP | other *** search
/ Libris Britannia 4 / science library(b).zip / science library(b) / PROGRAMM / DB_CLIPP / 0769A.ZIP / README.1ST < prev    next >
Text File  |  1987-11-11  |  2KB  |  52 lines

  1. SUBSTRM - This small package contains 2 C functions for Clipper, that can 
  2.           be used with memo fields.  They are LINES and SUBSTRMEMO.  LINES,
  3.           counts up the number of lines in a memo field.  It is fairly 
  4.           trivial and will be replaced with an interal function in the '87
  5.           version of Clipper.  I included it because the demo program calls
  6.           it.  Also, those with Autumn'86 may find it useful.
  7.  
  8.           The second function is called SUBSTRMEMO.  It is to memo fields, 
  9.           what SUBSTR is to character fields.  It allows you to extract a
  10.           range of lines from a memo field.  The syntax is like this
  11.           SUBSTRMEMO (memo field [, start line [, end line]]).  The start
  12.           and end lines are optional, but the presents of end line implies
  13.           that start line has been specified.  
  14.  
  15.           Why would you want to use this?  My main reason for writing this
  16.           was to print a memo field that spanned 2 pages.  By checking to see
  17.           how many lines remain on the page, I can print that many lines, 
  18.           eject, and finish on the next page.
  19.  
  20.           A word of caution: Although I made a diligent attemp to debug this
  21.           function, I did not try it with negative numbers.  If you should 
  22.           attemp to call it with negative numbers, I can't guarantee what
  23.           will happen.  My suggestion is to not call it with negative numbers,
  24.           or modify the source code.
  25.  
  26. To Run the Demo:
  27.  
  28.           All you have to do is link the object modules together.
  29.  
  30.           DOS Linker or BORLAND TLINK:
  31.  
  32.           LINK TEST SUBSTRM LINES,,nul,clipper
  33.  
  34.           PLINK86:
  35.  
  36.           I don't remember, I don't user it often
  37.  
  38.  
  39.           The file TESTFILE.DBF/.DBT contains 1 record.  There is one
  40.           memo field in the record.  The demo program TEST calls SUBSTRMEMO
  41.           and uses that file.  It is included only for demonstration 
  42.           purposes.
  43.  
  44.  
  45. Any questions or comments can be directed to me through the Source: NA2541
  46.  
  47. Enjoy!!
  48.  
  49.  
  50.  
  51.           
  52.